package com.blb.community_admin.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community_admin.entity.ZyOwnerRoomRecord;
import com.blb.community_admin.mapper.ZyOwnerRoomRecordMapper;
import com.blb.community_admin.service.ZyOwnerRoomRecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ZyOwnerRoomRecordServiceImpl extends ServiceImpl<ZyOwnerRoomRecordMapper, ZyOwnerRoomRecord> implements ZyOwnerRoomRecordService {
   @Autowired
    private ZyOwnerRoomRecordMapper zyOwnerRoomRecordMapper;
    /**
     * 通过业主房间的id去查询记录
     * @param id
     * @return
     */
    @Override
    public List<ZyOwnerRoomRecord> getRecords(Long id) {
        return zyOwnerRoomRecordMapper.getRecords(id);
    }
}
